﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Facebook.Master" Inherits="System.Web.Mvc.ViewPage<SimplePoll.Web.Models.Poll>" %>

<asp:Content ID="IndexTitleContent" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="IndexMainContant" ContentPlaceHolderID="MainContent" runat="server">

    <div class="wrap">
		<% using (Html.BeginForm("PostAnswer"))
     { %>
		    <div class="questions">
	            <img src="../../Content/images/simplePoll.jpg" alt="Simple Poll"/>
                <div class="qmargin">
        			<p class="qt" style="margin-top:46px"><strong><%=Model.Question %></strong></p>
        			<div class="answer">
                        <label><%=Html.RadioButton("answer", 1, true)%><%=Model.Answer1 %></label>
                            <br />
                        <label><%=Html.RadioButton("answer", 2, false)%><%=Model.Answer2 %></label>
        				    <br />
        				<label><%=Html.RadioButton("answer", 3, false)%><%=Model.Answer3 %></label>
        			</div>
                    <%=Html.HiddenFor(m=>m.Name) %>
                    <input type="hidden" name="facebookId" id="facebookId" value="<%= ViewData["facebookId"] %>" />
    		        <input type="submit"  name="submit" value="Submit" class="submit-button"/>
	            </div>
            </div>
	    <% } %>
    </div>

</asp:Content>
